package cn.com.bod.fas.common.annotation.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = IdCardNoValidator.class)
public @interface IdCardNo {

    String message() default "身份证号码格式不合法";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
